Report post

What is find() method in jQuery?

A string containing a selector expression to match elements against. An element or a jQuery object to match elements against. Given a jQuery object that represents a set of DOM elements, the .find() method allows us to search through the descendants of these elements in the DOM tree and construct a new jQuery object from the matching elements.

What is the difference between find() and find() in jQuery?

The jQuery object is designed to be a wrapper around the elements. .find() is a jQuery function, it only works on jQuery objects. If you extract the underlying element, it is no longer a jQuery object, just a regular element, so you can not use .find() on it.

How do I find tr elements in a jQuery table?

Comeonman, if you want $("#myTable").find('tr').find('td') to work, use this: will query all tr elements in the table #myTable and returns them in a jQuery wrapped set. will query all tr elements in the same table, but returns the first DOM element (not the jQuery object) the exact same as above.

The World's Leading Crypto Trading Platform

Get my welcome gifts